﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title | Proggy</title>
    <script type="text/javascript">
        window.ROOT_URL = '@(Url.Content("~/"))';
        window.CHANGES_NOT_SAVED = "@Proggy.Data.ProggyDataConstants.CHANGES_NOT_SAVED";
    </script>
    <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
    <link href='http://fonts.googleapis.com/css?family=Short+Stack|Press+Start+2P' rel='stylesheet'
        type='text/css' />
    <link href="@Url.Content("~/Areas/Proggy/Content/ThirdParty/jquery-ui-1.8.21.custom/css/ui-darkness/jquery-ui-1.8.21.custom.css")"
        rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/Proggy/Content/Css/Proggy.css")" rel="stylesheet" type="text/css" />
    <!--[if lte IE 7]>
	    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Areas/Proggy/Content/Css/Proggy.IE7.css")" />
    <![endif]-->
    <script src="@Url.Content("~/Areas/Proggy/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Areas/Proggy/Content/ThirdParty/jquery-ui-1.8.21.custom/js/jquery-ui-1.8.21.custom.min.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Areas/Proggy/Content/ThirdParty/livequery/jquery.livequery.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Areas/Proggy/Content/Scripts/ProggyCore.js")" type="text/javascript"></script>
    @Html.RenderBackEndContent()
</head>
<body>
    <noscript>
        <div id="noScript">
            JavaScript is either disabled or not available on your browser. Proggy will not function without JavaScript.
        </div>
    </noscript>
    <div id="all" style="display:none;">
        <div id="headerContainer">
            <div id="header">
                <div id="headerLeft">
                    <h1>
                        @Html.ActionLink(
                        "Proggy",
                        "Index",
                        new
                        {
                            controller = "Home"
                        },
                        new
                        {
                            title = "Proggy - the CMS for developers"
                        })</h1>
                    <p>
                        The CMS for developers...</p>
                </div>
                <div id="headerRight">
                    @if (MembershipContext.Current != null)
                    {
                        <ul id="loginInfo">
                            <li>Hello @MembershipContext.Current.CurrentMember.Name</li>
                            <li>Authentication mode: @MembershipContext.Current.CurrentMember.AuthenticationMode</li>
                            @if (MembershipContext.CurrentAuthenticationMode == System.Web.Configuration.AuthenticationMode.Forms) { 
                                <li>@Html.ActionLink("Log off", "LogOff", new{ area="Proggy",controller="FormsAuthentication" })</li>
                            }
                        </ul>
                    }
                </div>
                @Html.Clear()
            </div>
        </div>
        @if (MembershipContext.Current != null)
        {
            <div id="navContainer">
                <div id="nav">
                    @{
            Html.RenderAction("NavPartial", new { controller = "Home" });
                    }
                    @Html.Clear()
                </div>
            </div>
        }
        <div id="contentContainer">
            <div id="content">
                @{
                    Html.RenderPartial("_Success");
                }
                @RenderBody()
            </div>
        </div>
        <div id="clearFooter">
            &nbsp;</div>
    </div>
    @Html.Clear()
    <div id="footerContainer">
        <div id="footer">
            <p>
                &copy; R.J.Johnson 2012 | <a href="http://proggy.codeplex.com" target="_blank" title="Proggy on Codeplex">
                    Proggy on Codeplex</a></p>
        </div>
    </div>
    <script type="text/javascript">
        // get global object
        var glbl = new Proggy.Global();

        // fire
        glbl.Init();
    </script>
</body>
</html>
